/* 작성자 : Jint
 * 작성일 : 140424
 * 내용 : 
 */

package stream;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.Date;
	
public class Ex_ObjectInputStream {
	
	public static void main(String[] args) {
		ObjectInputStream ois = null;
		try{
			ois = new ObjectInputStream(new FileInputStream("test.ser"));
			String str = (String)ois.readObject();
			Integer in = (Integer)ois.readObject();
			Date d = (Date)ois.readObject();
			System.out.println(str);
			System.out.println(in);
			System.out.println(d);
			ois.close();
		}catch(IOException ie){
			ie.getMessage();
		}catch(ClassNotFoundException ce){
			ce.getMessage();
		}
	
	}
	
}
